package com.jason.library.common.util

import android.util.Log

/**
 * @description: CLog
 *
 * @author ChenBaoyang
 * @date 4/15/21 14:59
 */
object CLogUtils {

    private val TAG = "chenby--"

    fun i(info: String) {
        Log.i(TAG, info)
    }

    fun i(format:String, vararg args: String?) {
        i(String.format(format, *args))
    }

    fun i(tag: String, info: String) {
        Log.i(TAG + tag, info)
    }

    fun i(tag: String, format:String, vararg args: String?) {
        i(tag, String.format(format, *args))
    }

    fun d(info: String) {
        Log.d(TAG, info)
    }

    fun d(format:String, vararg args: String?) {
        d(String.format(format, *args))
    }

    fun d(tag: String, info: String) {
        Log.d(TAG + tag, info)
    }

    fun d(tag: String, format:String, vararg args: String?) {
        d(tag, String.format(format, *args))
    }

    fun e(info: String) {
        Log.e(TAG, info)
    }

    fun e(format:String, vararg args: String?) {
        e(String.format(format, *args))
    }

    fun e(tag: String, info: String) {
        Log.e(TAG + tag, info)
    }

    fun e(tag: String, format:String, vararg args: String?) {
        e(tag, String.format(format, *args))
    }

}